<?php
function _ctlUserstatus($name, $attribs)
{
    $menuconfig = FLEA::loadFile('Config_MenuConfig.php');
	$dispatcher =& FLEA::getSingleton(FLEA::getAppInf('dispatcher'));
    $user = $dispatcher->getUser();
    $str = $user['USERNAME'];
    if(empty($user)){
        $str = '';
    }
    $smarty = FLEA::getSingleton(FLEA::getAppInf('view'));
    $smarty->assign('output', $str);
    $smarty->assign('menu_name', $name);
    return $smarty->fetch('webcontrols/userstatus.html');
}
